<?php

namespace app\api\controller;

use app\common\controller\Api;
use think\Request;

class BatteryMoney extends Api
{
	public function index()
	{
		$list = model($this->request->controller())->paginate(10)->toArray();
		return fh(200,'success','请求成功',$list);
	}
	public function read()
	{
		$id = input('id');
		$list = model($this->request->controller())->get($id)->toArray();
		return fh(200,'succss','请求成功',$list);
	}
}
